<include file="./admin/Tpl/Public/_header.html" />
<div class="so_main">
  
  <div class="page_tit">菜单管理</div>
  <div class="Toolbar_inbox">
	<a href="__URL__/appAdd" class="btn_a""><span>添加菜单</span></a>
  </div>
  <div class="list">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>


    <th class="line_l">菜单名</th>
	  <th>应用</th>
    <th class="line_l">路径</th>
     <th class="line_l">角色权限</th>
	<th class="line_l">操作</th>
  </tr>
 <volist name="list" id="data">
 	  	  {// 一级分类 }
      <tr overstyle='on' id="{$data.app_id}">

      <td ><img class="down" src="__PUBLIC__/admin/images/aaOn.png" width="9" height="9" border="0" alt="" align="absmiddle">&nbsp;&nbsp;	{$data.app_name}</td>
	    <td></td>
      <td></td>
      <td>{$data.role_str}</td>
	   <td><a href="{:U('Acl/appEdit',array('id'=>$data['app_id']))}"><img src="__PUBLIC__/admin/images/b_edit.png" width="16" height="16" border="0" alt="" align="absmiddle"></a></td>
      </tr>
	  	  {// 二级分类 }
	   <volist name="data.items" id="data2"> 
	   <tr  overstyle='on' id="{$data2.app_id}" class="{$data2.app_fid}" style=" display:none;" >

      <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="__PUBLIC__/admin/images/aaOff.png" width="9" height="9" border="0" alt="" align="absmiddle">&nbsp;{$data2.app_name}</td>
	  <td></td>
      <td></td>
      <td>{$data2.role_str}</td>
      <td><a href="{:U('Acl/appEdit',array('id'=>$data2['app_id']))}"><img src="__PUBLIC__/admin/images/b_edit.png" width="16" height="16" border="0" alt="" align="absmiddle"></a></td>
      </tr>
	  {// 三级分类 }
	   <volist name="data2.items" id="data3"> 
	      <tr overstyle='on' id="{$data3.app_id}" class="{$data2.app_fid}" style=" display:none;">

      <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$data3.app_name}</td>
	    <td>
		<img src="__PUBLIC__/admin/images/fzcg_dh.gif" width="17" height="13" border="0" alt="" align="absmiddle">			
		</td>
      <td>{$data3.app_url}</td>
      <td>{$data3.role_str}</td>
      <td><a href="{:U('Acl/appEdit',array('id'=>$data3['app_id']))}"><img src="__PUBLIC__/admin/images/b_edit.png" width="16" height="16" border="0" alt="" align="absmiddle"></a></td>
      </tr>
	   </volist>
	    </volist>
  </volist>
  </table>
  </div>
  
  
  <div class="Toolbar_inbox">
     <div class="page right">{$page}</div>
	<a href="__URL__/appAdd" class="btn_a""><span>添加菜单</span></a>
  </div>
</div>

<script>
    //鼠标移动表格效果
    $(document).ready(function(){
	
        $("tr[overstyle='on']").hover(
          function () {
            $(this).addClass("bg_hover");
          },
          function () {
            $(this).removeClass("bg_hover");
          }
        );
    });
    
	
	
  
    $(".down").toggle(

  function () {
    var id =  $(this).parents("tr").attr("id");
	$(this).attr("src","__PUBLIC__/admin/images/aaOff.png");
   $("."+id).show();
  },
  function () {
   var id =  $(this).parents("tr").attr("id");
	$(this).attr("src","__PUBLIC__/admin/images/aaOn.png");
   $("."+id).hide();
  }
)


	
</script>
<include file="./Tpl/default/Public/_footer.html" />